﻿<%@ Page Language="C#"  MasterPageFile="~/Shared/MainPage.Master" AutoEventWireup="true" CodeBehind="InstrumentAccessory.aspx.cs" Inherits="Runda.CMS.Portal.SyncManage.InstrumentAccessory" %>

 
<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadCalendar.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadInput.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
    <link href="../Content/global.css" rel="stylesheet" type="text/css" />

    <script src="../Content/global.js" type="text/javascript"></script>

    <link href="../Content/Menu/Menu.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Tab/tabs.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Grid/Grid.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Find/find.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Tab/tabs.css" rel="stylesheet" type="text/css" />

    <script language="javascript" src="../Content/settings.aspx"></script>

    <script src="../Content/lookup/Lookup.js" type="text/javascript"></script>

    <link href="../Content/Form/form.css" rel="Stylesheet" type="text/css" />

    <script language="javascript" src="../Content/Detail.js"></script>

    <script language="javascript" src="../Content/lookup/Lookup.js"></script>
 <script type="text/javascript">
     function openPage() {
         var id = document.getElementById('<%=hiddenInstrumentID.ClientID %>').value;
         var url = "AccessoryInInstrumentAdd.aspx?InstrumentID=" + id;
         openMyFullWin(url, 'InstrumentAdd');
     }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="server">
    <div class="area" id="areaForm">
        <div style="margin: 5px 0 5px 0">
        </div>
        <table class="mnubar" cellspacing="0" cellpadding="0" height="400px">
            <tbody>
                <tr>
                    <td style="padding-left: 5px" nowrap>
                        <b>相关配件</b>
                    </td>
                    <td style="padding-left: 5px">
                        <img src="../Content/Grid/separator.gif">
                    </td>
                    <td class="icMenu" nowrap>
                    </td>
                    <td class="icMenu mnuRight" nowrap>
                      <span class="menu" onclick="openPage();">
                            <img class="mnuBtn" src="../Content/Grid/New_16_blue.gif"><span class="mnuBtn">关联配件、易耗件</span></span>
                      
                    </td>
                </tr>
            </tbody>
        </table>
        <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
            <div id="areaForm2" class="area">
                <asp:HiddenField runat="server" ID="hiddenInstrumentID" />            
                  <rad:RadGrid runat="server" ID="gridContractItems"  OnItemDataBound="gridContractItems_ItemDataBound"  Skin="OCM" AutoGenerateColumns="False" AllowSorting="True" GridLines="None">
       
        <ClientSettings EnableClientKeyValues="true">
            <Selecting AllowRowSelect="true" />
         
        </ClientSettings>
        <MasterTableView DataKeyNames="AccessoryID"> 
            <Columns>
                <rad:GridTemplateColumn HeaderText="类型">
                                 <ItemTemplate>
                                    <asp:Label runat="server" ID="AccessoryType" Text='<%#Eval("AccessoryType") %>' Visible="false"></asp:Label>
                                    <asp:Label runat="server" ID="AccessoryTypeName"></asp:Label>
                                 </ItemTemplate>
                             </rad:GridTemplateColumn>
                <rad:GridBoundColumn DataField="CompanyInstrumentCode" HeaderText="公司代码"></rad:GridBoundColumn> 
                <rad:GridBoundColumn DataField="FactoryInstrumentCode" HeaderText="厂家代码"></rad:GridBoundColumn> 
                <rad:GridBoundColumn DataField="AccessoryName" HeaderText="名称"></rad:GridBoundColumn>
                <rad:GridBoundColumn DataField="AccessoryStandard" HeaderText="规格"></rad:GridBoundColumn>
                <rad:GridBoundColumn DataField="Unit" HeaderText="单位"></rad:GridBoundColumn> 
               <%--<rad:GridBoundColumn DataField="PresellPrice" HeaderText="销售价"></rad:GridBoundColumn> --%>
                <rad:GridBoundColumn DataField="Vendor" HeaderText="厂商"></rad:GridBoundColumn> 
                
            </Columns>
        </MasterTableView>
    </rad:RadGrid>
      
    <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
    </div>
      
    <div style="margin: 5px 0 5px 0">
    </div>                
            </div>
        </div>
        </div>
</asp:Content>
